// 公共接口
import { request } from "@/utils/http.js";

import globalConfig from "@/utils/config.js";

const baseUrl = globalConfig.microUrl;
const modules = "/store";

export default {
  // 订单确认-根据店铺id获取支付方式
  getById: (data) => {
    return request({ url: `${baseUrl}/store/get`, method: "GET", data });
  },
  storeClerkAdd: (data) => {
    return request({
      url: `${baseUrl}/storeClerk/create`,
      method: "POST",
      data
    });
  },
  storeSearch: (data) => {
    return request({
      url: `${baseUrl}/store/search`,
      method: "GET",
      data
    }); // 店铺搜索
  }
};
